<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
  <?php print $styles; ?>
  <?php print $scripts; ?>
</head>

<body class="<?php print $body_classes; ?>">
  <div id="page">
    <div id="header">
      <div id="logo-title">
        <?php if ($logo): ?>
        <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>">
          <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" id="logo" />
        </a>
        <?php endif; ?>
        <div id="name-and-slogan">
          <!--
          <?php if ($site_name): ?>
          <h1 id='site-name'>
            <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a>
          </h1>
          <?php endif; ?>
          -->
          <?php if ($site_slogan): ?>
          <div id='site-slogan'>
            <?php print $site_slogan; ?>
          </div>
          <?php endif; ?>
          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
        </div> <!-- /name-and-slogan -->
      </div> <!-- /logo-title -->
      <div id="hdr-nav-bar">
        <?php print fmapb_hdr_nav_bar() ?>
      </div> <!-- /hdr-nav-bar -->
    </div> <!-- /header -->
    <div id="main-container">
      <?php if ($show_main_map): ?>
      <div id="sidebar-left">
        <ul id="mplace-list">
        </ul>
      </div>
      <?php else: ?>
      <?php if ($sidebar_left): ?>
      <div id="sidebar-left">
        <?php print $sidebar_left; ?>
      </div> <!-- /sidebar-left -->
      <?php endif; ?>
      <?php endif; ?>
      <?php if ($show_main_map): ?>
      <div id="main-content" class="with-main-map">
      <?php else: ?>
      <div id="main-content">
      <?php endif; ?>
        <div id="squeeze">
          <?php if ($show_main_map): ?>
          <div id="main-map-wrapper">
            <div id="main-map">
            </div>
          </div> <!-- /main-map-wrapper -->
          <?php else: ?>
          <?php if ($mission): ?>
          <div id="mission">
            <?php print $mission; ?>
          </div>
          <?php endif; ?>
          <?php if ($content_top): ?>
          <div id="content-top">
            <?php print $content_top; ?>
          </div>
          <?php endif; ?>
          <?php if ($title): ?>
          <h1 class="title">
            <?php print $title; ?>
          </h1>
          <?php endif; ?>
          <?php if ($tabs): ?>
          <div class="tabs">
            <?php print $tabs; ?>
          </div>
          <?php endif; ?>
          <?php print $help; ?>
          <?php print $messages; ?>
          <?php print $content; ?>
          <?php print $feed_icons; ?>
          <?php if ($content_bottom): ?>
          <div id="main-content-bottom">
            <?php print $content_bottom; ?>
          </div>
          <?php endif; ?>
          <?php endif; ?>
        </div> <!-- /squeeze -->
      </div> <!-- /main-content -->
    </div> <!-- /main-container -->
    <?php if ($show_main_map): ?>
    <div id="loading-msg-bar">
      <p>Loading ...</p>
    </div>
    <?php endif; ?>
    <div id="footer-wrapper">
      <div id="footer">
        <?php print $footer_message; ?>
      </div> <!-- /footer -->
    </div> <!-- /footer-wrapper -->
    <?php print $closure; ?>
  </div> <!-- /page -->
</body>
</html>
